package com.topisv.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.EcCorePrintRegion;
import com.topisv.tms.repository.EcCorePrintRegionDao;

@Component
@Transactional(readOnly = true)
public class EcCorePrintRegionService {

	@Autowired
	private EcCorePrintRegionDao ecCorePrintRegionDao;
	public EcCorePrintRegion findByAreaNameAndLayers(String areaName,int layers){
		return ecCorePrintRegionDao.findByAreaNameAndLayers(areaName, layers);
	}
	
	public List<EcCorePrintRegion> findByAreaName(String areaName){
		return ecCorePrintRegionDao.findByAreaName(areaName);
	}
}
